package com.mars.attach.common.utils.file;

public class FileMeta {
	
	/**
	 * 文件名称
	 */
	private String name ;
	
	/**
	 * 文件大小
	 */
	private long size ;
	
	/**
	 * 文件类型
	 */
	private String type ;
	
	/**
	 * 文件上传服务器域名
	 */
	private String domain ;
	
	/**
	 * 文件URL地址
	 */
	private String url ;
	
	/**
	 * 图片缩略图URL地址
	 */
	private String thumbnail_url ;
	
	/**
	 * 文件删除地址
	 */
	private String delete_url ;
	
	/**
	 * 状态（true：成功，false：失败）
	 */
	private boolean status ;
	
	/**
	 * 响应消息
	 */
	private String message ;

	public FileMeta(boolean status, String message) {
		super();
		this.status = status;
		this.message = message;
	}

	public FileMeta(String name, long size, String type, String domain, String url, String thumbnail_url, String delete_url) {
		super();
		this.name = name;
		this.size = size;
		this.type = type;
		this.domain = domain;
		this.url = url;
		this.thumbnail_url = thumbnail_url;
		this.delete_url = delete_url;
	}

	public FileMeta(String name, long size, String type, String domain, String url, String thumbnail_url, String delete_url, boolean status, String message) {
		super();
		this.name = name;
		this.size = size;
		this.type = type;
		this.domain = domain;
		this.url = url;
		this.thumbnail_url = thumbnail_url;
		this.delete_url = delete_url;
		this.status = status;
		this.message = message;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getThumbnail_url() {
		return thumbnail_url;
	}

	public void setThumbnail_url(String thumbnail_url) {
		this.thumbnail_url = thumbnail_url;
	}

	public String getDelete_url() {
		return delete_url;
	}

	public void setDelete_url(String delete_url) {
		this.delete_url = delete_url;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "FileMeta2 [name=" + name + ", size=" + size + ", type=" + type + ", domain=" + domain + ", url=" + url + ", thumbnail_url=" + thumbnail_url + ", delete_url=" + delete_url + ", status=" + status + ", message=" + message + "]";
	}
	

}
